package com.guigu.mapper;

import com.guigu.dto.FollowUpDiaryDTO;
import com.guigu.entity.FollowUpDiary;
import com.guigu.vo.FollowUpDiaryVO;

import java.util.List;

public interface FollowUpDiaryMapper {
    /**
     * 分页查询随访日记
     * @return FollowUpDiaryVO
     */
    public List<FollowUpDiaryVO> FindFollowUpDiary(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 根据姓名查询档案号
     * @return FollowUpDiaryVO
     */
    public FollowUpDiaryVO findIdByName(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     *根据姓名查询id
     * @return
     */
    public FollowUpDiaryVO queryIdByName(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     *保存随访日记
     */
    public void saveFollowUp(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 保存文件
     * @param followUpDiaryDTO
     */
    public void saveFile(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 根据id删除随访日记
     * @param followUpDiaryDTO
     */
    public void delFollowById(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 根据id修改随访日记
     * @param followUpDiaryDTO
     */
    public void updateFollowUpById(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 根据id删除文件
     * @param f_id
     */
    public void delFileById(int f_id);

    /**
     * 根据用户id查询文件id
     * @param followUpDiaryDTO
     * @return
     */
    public FollowUpDiaryVO queryFileById(FollowUpDiaryDTO followUpDiaryDTO);

    /**
     * 根据文件id查询文件路径
     * @param f_id
     * @return
     */
    public String seeFileById(int f_id);
}
